<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form action="三国之皇帝-家庭作业.html">
			手机号码：<input type="text" name="phone" value="13926583118" />
			<br/>
			爱好：
				<input type="checkbox" name="hobby"  value="麻将" /> 麻将
				<input type="checkbox" name="hobby"  value="斗地主"/> 斗地主
				<input type="checkbox" name="hobby"  value="诈金花"/> 诈金花
				
			年龄：<input type="text" name="phage"  value="33"  />
			<br/>
			
			<input name="phmoney" type="hidden" value="5000" />
		</form>
	</body>
	
	<script type="text/javascript" src="../../js/jquery-1.7.2.js" ></script>
	<script>
		//找不以ph开头input标签 
		//var xyz = $('input[name^="ph"]:visible');
		//var xyz = $('input[name^="ph"][type!="hidden"]');
		//var xyz = $('input[name^="ph"]:not(:hidden)');
		var xyz = $('input[name^="ph"]').not(":hidden");
		
		xyz.each(function(index,data){
			console.log(data.value);
		});
		//console.log(xyz.length);
	</script>
</html>
